package yns.springboot.guide.doc.swagger;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
//
//import springfox.documentation.builders.ApiInfoBuilder;
//import springfox.documentation.builders.PathSelectors;
//import springfox.documentation.builders.RequestHandlerSelectors;
//import springfox.documentation.service.ApiInfo;
//import springfox.documentation.spi.DocumentationType;
//import springfox.documentation.spring.web.plugins.Docket;
//import springfox.documentation.swagger2.annotations.EnableSwagger2;

@Configuration
//@EnableSwagger2
//@EnableKnife4j   
public class SwaggerConfiguration {
	
	private static final String BASE_PACKAGE = "yns.springboot.guide.controller";
	private static final String API_INFO_TITLE = "swagger-bootstrap-ui RESTful APIs";
	private static final String API_INFO_DESCRIPTION = "swagger-bootstrap-ui";
	private static final String API_INFO_TERMSOFSERVICEURL = "http://localhost:8999/";
	private static final String API_INFO_VERSION = "1.0";
	
	
//	@Bean
//	public Docket createRestApi() {
//		return new Docket(DocumentationType.SWAGGER_2).apiInfo(apiInfo()).select()
//				.apis(RequestHandlerSelectors.basePackage(BASE_PACKAGE)).paths(PathSelectors.any()).build();
//	}
//
//	private ApiInfo apiInfo() {
//		return new ApiInfoBuilder().title(API_INFO_TITLE).description(API_INFO_DESCRIPTION)
//				.termsOfServiceUrl(API_INFO_TERMSOFSERVICEURL).version(API_INFO_VERSION).build();
//	}
}
